package com.projectdemo.springbootdemo1.dao;

import com.projectdemo.springbootdemo1.pojo.Department;
import com.projectdemo.springbootdemo1.pojo.Employee;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface DepartmentRepository extends CrudRepository<Department, Integer> {
    // 你可以在这里定义自定义查询方法，例如：
    Department findByDepartmentName(String departmentName);
}
